package lormi.meipin.controller.api;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


import lormi.meipin.common.Result;
import lormi.meipin.controller.BaseController;
import lormi.meipin.exception.LMException;

/**
 * 邀请码设置
 * */
@RestController
@RequestMapping(value="v2/invitation",method=RequestMethod.POST,produces = "application/json; charset=utf-8")
public class InvitationCodeController extends BaseController{

	/**
	 * 获取自己的邀请码
	 * @param userid 用户ID
	 * */
	@RequestMapping("get")
	public String editTalent(Integer userid) throws LMException{
		
		return Result.success(invitationCodeService.getInviteCode(userid));
	}
	
}
